package com.ttc.group2.videochat.model;

import java.util.ArrayList;
import java.util.List;

import com.quickblox.users.model.QBUser;

public class DataHolder {

	private static final DataHolder dataHolder = new DataHolder();
	private List<QBUser> qbUsersList = new ArrayList<QBUser>();
	private QBUser signInQbUser;

	private DataHolder() {
	};

	public static synchronized DataHolder getDataHolder() {
		return dataHolder;
	}

	public void setQbUsersList(List<QBUser> qbUsersList) {
		this.qbUsersList = qbUsersList;
	}
	
	public List<QBUser> getQbUsers() {
		return qbUsersList;
	}

	public int getQBUserListSize() {
		return qbUsersList.size();
	}

	public String getQBUserName(int index) {
		return qbUsersList.get(index).getFullName();
	}

	public QBUser getQBUser(int index) {
		return qbUsersList.get(index);
	}

	public void addQbUserToList(QBUser qbUser) {
		qbUsersList.add(qbUser);
	}

	public QBUser getSignInQbUser() {
		return signInQbUser;
	}

	public void setSignInQbUser(QBUser singInQbUser) {
		this.signInQbUser = singInQbUser;
	}

	public String getSignInUserOldPassword() {
		return signInQbUser.getOldPassword();
	}

	public int getSignInUserId() {
		return signInQbUser.getId();
	}

	public void setSignInUserPassword(String singInUserPassword) {
		signInQbUser.setOldPassword(singInUserPassword);
	}

	public String getSignInUserLogin() {
		return signInQbUser.getLogin();
	}

	public String getSignInUserEmail() {
		return signInQbUser.getEmail();
	}

	public String getSignInUserFullName() {
		return signInQbUser.getFullName();
	}

	public String getSignInUserPhone() {
		return signInQbUser.getPhone();
	}

	public String getSignInUserWebSite() {
		return signInQbUser.getWebsite();
	}

}
